<?php #//AJAX PHP PENNY AUCTION v.1.3

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
                        include "../includes/config.inc.php";
             
             
      
    
    $query = "select id,title from PHPAUCTIONXL_auctions order by id LIMIT 0,1000";
$result = mysql_query($query);
$num_auction = mysql_num_rows($result);

$dropdown = "";

             $i = 0;
while($i < $num_auction) {


    $title = mysql_result($result,$i,"title");
	$id = mysql_result($result,$i,"id");
	
          if ( $title != '' ) {
$dropdown .=  "<OPTION value=\"$id\" >$i) $title"; 	
                               }


$i++;
}
    
               
                                
     // $ERR ="Note: Pausing auctions using this feature does not stop the clocks from counting down, it just allows the auction to display the word 'PAUSED' and disables the bid button.  Auctions can still end while being paused, so manage the auctions ending time to end after the paused duration is over.  To continually pause auction enter a '0' for pause start time and '23' for pause end time. Enter a '0' for both the start and end pause time, to activate the auctions countdown timer and never pause an auction."                          

  ?>
  

<HTML>
<HEAD>
<link rel='stylesheet' type='text/css' href='style.css' />
<link href="css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
    
       <? // -------------------------- Admin Tool Heading --------------------------------------?>
       
       
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titulo">
        <tr> 
          <td class="icono">
          
          
         <td class="icono"><img src="images/auction_icon2.gif" width="31" height="25" ></td>
          <td class="breadcrumbs"><p><span><?=$MSG_239?></span>&nbsp;&gt;&gt;&nbsp;<? print $MSG_AJAX_ADMIN_RELIST_AUCTION_TITLE; ?></p></td>
        </tr>
      </table>
      
      
      
      </td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
    <tr> 
    <td align="center" valign="middle">
    
    
    
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD align="center">
<BR>
<FORM ACTION=../relistauction.php METHOD=GET>


  <? // -------------------------- LIGHT BLUE TITLE BAR --------------------------------------?>

	<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0"  class="base" ALIGN="CENTER" style="border:1px solid #ccc;">
		<TR>
			<TD ALIGN=CENTER class=title>
				<p><? print $MSG_AJAX_ADMIN_RELIST_AUCTION_TITLE; ?></p>
			</TD>
		</TR>
		
		
		
		<TR>
		<TD>
		
    
    
    <TABLE WIDTH=100% ALIGN="CENTER" CELLPADDING=0 cellspacing="0" BGCOLOR="#FFFFFF">
		
 <? // -------------------------- ERROR BAR --------------------------------------?>    
 
 <? if ($ERR) { ?>   
    	<TR>
				<TD COLSPAN="2"  class="error"><B>
					<p><? print $ERR; ?></p>
					</B></TD>
			</TR>
	<? } ?>	
    
    	
			
			
 <? // -------------------------- WHITE BAR --------------------------------------?> 			
				<TR>
        <TD WIDTH="125"> 
				<p class="blue"><? print $MSG_AJAX_ADMIN_AUCTION_RELIST_LABEL; ?></p>
					</TD>
				<TD WIDTH="405">
						 <SELECT NAME="id" >
<? print $dropdown; ?>
                      </SELECT>
	</TD>
			</TR>
			
			
							<TR>
        <TD WIDTH="125"> 
			        
     <INPUT TYPE="submit" VALUE="<? print $MSG_AJAX_ADMIN_UPDATE_SETTINGS; ?>" class="action">
		 </form>
		 					</TD>
				<TD WIDTH="405">
		                      		</TD>
			</TR>
		</TD>
		</TR>
	</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
